package com.ehotting.edsta.circuitDesign.enums;

public enum SceneTypeEnum implements BaseEnum {

    FILTER_PARAM(0,"筛选参数"),
    CIRCUIT_SELECT(1,"电路选择"),
    ELEMENT_SELECT(2,"元器件选择");

    private Integer value;
    private String name;


    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    SceneTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }


    public static SceneTypeEnum getObject(Integer value){
        SceneTypeEnum[] rules = SceneTypeEnum.values();
        for(SceneTypeEnum rule : rules){
            if(rule.getValue().equals(value)){
                return rule;
            }
        }
        return SceneTypeEnum.FILTER_PARAM;
    }

}
